<style>
	.cntForm td
	{ldelim}
		padding: 8px;
	{rdelim}
</style>

{include file="stddecor.form.open.tpl" }
<table cellspacing="0" class="objHeader">
<tr>
    <td class="objHeader-td-icon"><img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/topic_icons/{$data.topic|escape}_{$data.tmode|escape}.gif" /></td>
    <td class="objHeader-td-header">
        <div>
            <h1>{$data.title|escape}</h1>
            <h2>{$data.subtitle|escape}</h2>
        </div>
    </td>
</tr>
</table>
{include file="stddecor.form.close.tpl" }

{* ************************************************************************* *}

{include file="stddecor.form.open.tpl" }

<form id="cntForm" name="cntForm" method="post" action="{$data.link_form_submit|escape}">
{foreach from=$data.formvars key=varname item=varvalue }
<input type="hidden" name="{$varname|escape}" value="{$varvalue|escape}" />
{/foreach}

<center>
<table cellspacing="0" cellpadding="0" class="cntForm" width="100%">
<tr>
    <td colspan="3" align="center" style="padding:0px;">
		<table cellspacing="0" cellpadding="0" class="lang_nav_block" width="100%">
			<tr>
				<td width="33%" class="lang_nav_button active" block_class="lang_ru">
					<img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_ru.gif" align="absmiddle">&nbsp;&nbsp;&nbsp;Руский
				</td>
				<td width="34%" class="lang_nav_button" block_class="lang_ua">
					<img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_ua.gif" align="absmiddle">&nbsp;&nbsp;Українська
				</td>
				<td width="33%" class="lang_nav_button" block_class="lang_en">
					<img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_en.gif" align="absmiddle">&nbsp;&nbsp;English
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr>
    <td colspan="3" align="center"  class="lang_block_area">
		<div class="lang_block lang_ru">
			
		</div>
		<table cellspacing="0" cellpadding="0" width="100%">
			<tr class="lang_block lang_ru">
				<td align="right"><img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_ru.png" alt="Русская локализация"></td>
				<td colspan="2"><h1 style="color:black;">Русская локализация</h1></td>
			</tr>
			<tr class="lang_block lang_ua hidden">
				<td align="right"><img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_ua.png" alt="Українська локалізація"></td>
				<td colspan="2"><h1 style="color:black;">Українська локалізація</h1></td>
			</tr>
			<tr class="lang_block lang_en hidden">
				<td align="right"><img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/cntMedia/flag_en.png" alt="English локализация"></td>
				<td colspan="2"><h1 style="color:black;">English локализация</h1></td>
			</tr>
			<tr>
				<td class="cntForm-td-title"><div>Название:</div></td>
				<td class="cntForm-td-object lang_block lang_ru">
					<input type="text" class="text" name="field[name_ru]" value="{$content.item_fields.name_ru|escape}" maxlength="255" />
				</td>
				<td class="cntForm-td-object lang_block lang_ua hidden">
					<input type="text" class="text" name="field[name_ua]" value="{$content.item_fields.name_ua|escape}" maxlength="255" />
				</td>
				<td class="cntForm-td-object lang_block lang_en hidden">
					<input type="text" class="text" name="field[name_en]" value="{$content.item_fields.name_en|escape}" maxlength="255" />
				</td>
				<td class="cntForm-td-error buggy_obj buggy_obj__name"></td>
			</tr>

			<tr class="lang_block_area">
				<td class="cntForm-td-title"><div>Описание:</div></td>
				<td class="cntForm-td-object lang_block lang_ru" colspan="2">
					{include file="widget/spaw2.tpl" varname="field[description_ru]" editor_varname=description_ru_ExtEditor editor=$content.item_fields.description_ru_ExtEditor }
				</td>
				<td class="cntForm-td-object lang_block lang_ua hidden" colspan="2">
					{include file="widget/spaw2.tpl" varname="field[description_ua]" editor_varname=description_ua_ExtEditor editor=$content.item_fields.description_ua_ExtEditor }
				</td>
				<td class="cntForm-td-object lang_block lang_en hidden" colspan="2">
					{include file="widget/spaw2.tpl" varname="field[description_en]" editor_varname=description_en_ExtEditor editor=$content.item_fields.description_en_ExtEditor }
				</td>
			</tr>
			
			<tr><td>&nbsp;</td></tr>
			
			<tr class="lang_block_area">
				<td class="cntForm-td-title"><div>Meta заголовок страницы:</div></td>
				<td class="cntForm-td-object lang_block lang_ru">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_title_ru]">{$content.item_fields.meta_title_ru|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_ua hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_title_ua]">{$content.item_fields.meta_title_ua|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_en hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_title_en]">{$content.item_fields.meta_title_en|escape}</textarea>
				</td>
				<td class="cntForm-td-error buggy_obj buggy_obj__meta_title"></td>
			</tr>
			
			<tr class="lang_block_area">
				<td class="cntForm-td-title"><div>Meta описание:</div></td>
				<td class="cntForm-td-object lang_block lang_ru">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_description_ru]">{$content.item_fields.meta_description_ru|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_ua hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_description_ua]">{$content.item_fields.meta_description_ua|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_en hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_description_en]">{$content.item_fields.meta_description_en|escape}</textarea>
				</td>
				<td class="cntForm-td-error buggy_obj buggy_obj__meta_description"></td>
			</tr>
			
			<tr class="lang_block_area">
				<td class="cntForm-td-title"><div>Meta ключевые слова:</div></td>
				<td class="cntForm-td-object lang_block lang_ru">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_keywords_ru]">{$content.item_fields.meta_keywords_ru|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_ua hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_keywords_ua]">{$content.item_fields.meta_keywords_ua|escape}</textarea>
				</td>
				<td class="cntForm-td-object lang_block lang_en hidden">
					<textarea cols="60" rows="4" class="textarea" name="field[meta_keywords_en]">{$content.item_fields.meta_keywords_en|escape}</textarea>
				</td>
				<td class="cntForm-td-error buggy_obj buggy_obj__meta_keywords"></td>
			</tr>
		</table>
	</td>
</tr>

<tr><td>&nbsp;</td></tr>

{if $content.item_fields.t_created }
<tr>
    <td class="cntForm-td-title"><div class="light">Дата создания:</div></td>
    <td class="cntForm-td-object"><div class="light">{$content.item_fields.t_created|date}</div></td>
    <td></td>
</tr>
{/if}

{if $content.item_fields.t_updated }
<tr>
    <td class="cntForm-td-title"><div class="light">Дата модификации:</div></td>
    <td class="cntForm-td-object"><div class="light">{$content.item_fields.t_updated|date}</div></td>
    <td></td>
</tr>
{/if}

</table>

<div class="splitter padded"></div>

<table cellspacing="8" cellpadding="0">
<tr>
    <td>{include file="obj.button.tpl" name="Сохранить" onclick="cntForm_submit()" icon="save" }</td>
</tr>
</table>

</center>

</form>
{include file="stddecor.form.close.tpl" }

{* ************************************************************************* *}
